<?php
namespace c\sort;

/**
 * Description of a
 *
 * @author YeFng
 */
class g extends \control
{   
    use \m\tree_g;

    var $table = 'sort';
    var $State = array('hide', 'publish');
    
    function getID_forName($s)
    {
        return $this->db->getOneField($this->table, 'id', 'name = "'. $this->db->escape($s) .'"', 'id');
    }
}